package cn.com.open.ms.ecgpaasdatarest.dynamicconfig;

/**
 * @Description TODO
 * @Author 奶茶
 * Created by on 2018/11/25 10:23.
 */
public class DBContextHolder {

    private static final ThreadLocal<String> local = new ThreadLocal<String>();

    public static String getDbType(){
        return local.get();
    }

    public static void setDbType(String dbName){
        local.set(dbName);
    }

    public static void clear(){
        local.remove();
    }

}
